var fs = require("fs");
var path = require("path");

var filePath = path.join(__dirname,"/2.txt");

var writable = fs.createWriteStream(filePath);

writable.write("I LOVE CHINA!");
writable.end();